import request from '@/utils/request'

export function page(params) {
  return request({
    url: '/api/pds/pdsProductValuation/getValuationList',
    method: 'get',
    params
  })
}

export function getClientList() {
  return request({
    url: '/api/pds/pdsCustomer/getPdsCustomerByName',
    method: 'get'
  })
}

// 获取报价条件
export function getPdsSaleConfAssetTree(params) {
  return request({
    url: '/api/pds/pdsSaleConfAsset/getPdsSaleConfAssetTree',
    method: 'get',
    params
  })
}

// 提交或更新
export function save(data) {
  return request({
    url: '/api/pds/pdsProductValuation/saveValuation',
    method: 'post',
    data
  })
}

// 获取详情
export function getDetail(params) {
  return request({
    url: '/api/pds/pdsProductValuation/getValuationDetail',
    method: 'get',
    params
  })
}

// 获取BOOM
export function getBomMaterial(params) {
  return request({
    url: '/api/pds/pdsProductResearch/queryBomMaterial',
    method: 'get',
    params
  })
}

